package org.calzz.example;

import org.calzz.jajb.JsonSerializer;
import org.calzz.jajb.converter.ArrayConverter;
import org.calzz.jajb.converter.BooleanConverter;
import org.calzz.jajb.converter.DateConverter;
import org.calzz.jajb.converter.NumberConverter;
import org.calzz.jajb.converter.StringConverter;
import org.calzz.jajb.io.JsonPrettyWriter;

public class Serializer {

	public static void main(String[] args) {

		JsonSerializer serializer = new JsonSerializer(new JsonPrettyWriter());
		serializer.registerConverter(new ArrayConverter());
		serializer.registerConverter(new BooleanConverter());
		serializer.registerConverter(new DateConverter());
		serializer.registerConverter(new StringConverter());
		serializer.registerConverter(new NumberConverter());

		System.out.println(serializer.serialize(new ExampleAnnotatedBean()));

	}

}
